All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.util.InetAddressCache

java.lang.Object
   |
   +----sun.server.util.InetAddressCache

public class InetAddressCache
extends Object
This class caches the results of java.net.InetAddress.getHostAddress() for various InetAddresses. It is purely a workaround for the poor performance of getHostAddress().


Constructor Index

 o InetAddressCache(long)
Constructor for the InetAddressCache

Method Index

 o lookup(InetAddress)
Get the Dotted IP String representation of the InetAddress if it is present in the cache or if the cache chooses to compute it.
 o rowLookup(int, InetAddress)

Constructors

 o InetAddressCache
 public InetAddressCache(long size)
Constructor for the InetAddressCache

Parameters:
size - - the size of the cache in bytes

Methods

 o rowLookup
 protected InetAddressCache. InetCacheEntry rowLookup(int row,
                                                      InetAddress target)
 o lookup
 public String lookup(InetAddress addr)
Get the Dotted IP String representation of the InetAddress if it is present in the cache or if the cache chooses to compute it.

Parameters:
addr - - the InetAddress to be looked up
Returns:
the String representation of the InetAddress or null if a miss and the cache declined to compute it.

All Packages  Class Hierarchy  This Package  Previous  Next  Index